$(document).ready(function (){
    var baseurl = $('#baseurl').val();
    $('#from1').change(function (){
        $.ajax({
            url: baseurl + '/index.php/khachhang/ga/load_ajax_GD',
            data: $('#from1').serialize(),
            type: 'POST',
            success: function (result){
                    $('#to1').html('<option value="" disabled selected>Chọn sân bay đến...</option>'+result);
            }
        });
    });
    $('#from2').change(function (){
        $.ajax({
            url: baseurl + '/index.php/khachhang/ga/load_ajax_GD',
            data: $('#from2').serialize(),
            type: 'POST',
            success: function (result){
                    $('#to2').html('<option value="" disabled selected>Chọn sân bay đến...</option>'+result);
            }
        });
    });
});